﻿using UnityEngine;

public class DestroySelf : MonoBehaviour {

    private void Awake()
    {
        DestroySelves();
    }

    private void DestroySelves()
    {
        if (this.gameObject.transform.position.x != 0)
        {
            Destroy(this.gameObject, 5);
        }
    }
}
